-
Couldn't load subscription status.
- Fork 23
Build Java Sample App with different language versions #247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build Java Sample App with different language versions #247
Conversation
84ee952 to
20b0bf6
Compare
6e21b2d to
96dabc8
Compare
31ad72f to
93179a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use Java 11 which does not work with Java 8. Could we update our sample app to just the Java 8 one and build it in all future version if they're all backwards compatible instead of maintaining multiple versions?
8161346 to
416fec6
Compare
9e679bb to
971fed6
Compare
*Issue description:* Follow up on #247 Add input option for Java EC2 to choose language version *Rollback procedure:* Revert *Test Run* https://github.com/harrryr/aws-application-signals-test-framework/actions/runs/11043127523 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue description:
In order to meet our requirement of ADOT java supporting all java versions 8+, we are planning on testing ADOT Java on the currently available Java versions before release. The test coverage will include Java 8, 11, 17, 21, 22. This PR will aim to build the Java sample apps on different language versions, and once we validate that the new .jar/images are available, we will merge another PR to make the canaries use the new changes
Description of changes:
Build Sample App For Java 8
Our current sample app is built on Java 11, however, some of the libraries that are used to make http calls are not available in Java 8. Built another sample app for Java 8 that uses older libraries.
Upgrade Gradle to 8.10
We use Gradle 8.5 to built our sample app, which doesn't support Java 21+. Upgrading gradle to the latest version 8.10.
Add plugin to use Kotlin 2.0
Gradle 8.10 uses Kotlin 1.x.x, however, Java 22 is supported by Kotlin 2.0. Added plugin in gradle.setting.ts to use the latest Kotlin version.
Refactor java sample app workflows
Updated the workflow files to use the latest secrets for AWS credentials and ECR ARN
Add jobs to build other language versions
Currently, we build Java 11 sample app and deploy to all regions. The other language versions are only required in us-east-1 since it will be used by main-build.yml in ADOT Java repo. Therefore, we made two new jobs in the workflow files to build and deploy new sample apps to us-east-1 only.
Rollback procedure:
Doesn't affect existing image which uses :latest tag. This PR should not affect any existing workflows.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.